using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Leeder.Model;

namespace DPS.Model
{
	/// <summary>
	/// 用户信息的基础数据模型
	/// </summary>
	public class SystemUserModel : BaseModel
	{
		/// <summary>
		/// 登录账号
		/// </summary>
		public string LoginID { get; set; }
		/// <summary>
		/// 密码
		/// </summary>
		public string Password { get; set; }
		/// <summary>
		/// 用户名称
		/// </summary>
		public string UserName { get; set; }
		/// <summary>
		/// 员工编号
		/// </summary>
		public string EmployeeNo { get; set; }
		/// <summary>
		/// 电话
		/// </summary>
		public string Phone { get; set; }
		/// <summary>
		/// 岗位
		/// </summary>
		public string Position { get; set; }
		/// <summary>
		/// 备注
		/// </summary>
		public string Remark { get; set; }
		/// <summary>
		/// 角色表ID
		/// </summary>
		public long RoleID { get; set; }
		/// <summary>
		/// 角色名称
		/// </summary>
		public string RoleName { get; set; }
		/// <summary>
		/// 是否超级用户 0:否 1:是
		/// </summary>
		public bool IsSupperUser { get; set; }
		/// <summary>
		/// 创建时间
		/// </summary>
		public DateTime CreateTime { get; set; }
		/// <summary>
		/// 修改时间
		/// </summary>
		public DateTime? ModifyTime { get; set; }
		/// <summary>
		/// 是否使用; 0:否 1:是
		/// </summary>
		public bool IsUse { get; set; }
	}

	/// <summary>
	/// 系统用户的查询模型
	/// </summary>
	public class SystemUserSearchModel : PaginationSearchModel {
		/// <summary>
		/// ID
		/// </summary>
		public long? ID { get; set; }
		/// <summary>
		/// 登录ID
		/// </summary>
		public string LoginID { get; set; }
		/// <summary>
		/// 用户名称
		/// </summary>
		public string UserName { get; set; }
		/// <summary>
		/// 角色表ID
		/// </summary>
		public long? RoleID { get; set; }
		/// <summary>
		/// 角色名称
		/// </summary>
		public string RoleName { get; set; }
		/// <summary>
		/// 是否使用,默认是查正在使用的
		/// </summary>
		public bool IsUse { get; set; } = true;
	}
}